package api;
import java.util.List;

import javax.ejb.Local;

@Local
public interface ISocializer {
	

	/**
	 * Needs ot return user id and name
	 * @param searchString
	 * @return
	 */
	List<FriendSummary> searchFriends(String searchString);
	boolean sendFriendshipInvitation(int fromId, int toId);	
	List<FriendSummary> getPendingFriendshipRequests(int uid);
	boolean confirmFriendshipRequest(int uid, int requesterdId);
	boolean isFriendWith(int baseId, int friendId);
	
	/**
	 * Replace String message by a message object
	 * @param ownerId
	 * @param posterId
	 * @param message
	 * @return
	 */
	boolean publishPublicMessage(int ownerId, int posterId, String message);
	boolean publishPrivateMessage(int ownerId, int posterId, String message);
	boolean getPublicMessageList(int uid);
	boolean getPrivateMessageList(int uid);
	

}
